﻿using System;

namespace AmiCheckin.Code.Util
{
    public class RandomUtil
    {
        public static int Number(int min, int max)
        {
            return new Random(Guid.NewGuid().GetHashCode()).Next(min, max + 1);
        }

        public static double Number(double min, double max)
        {
            return min + new Random(Guid.NewGuid().GetHashCode()).NextDouble() * (max - min);
        }
    }
}